import service from "@/utils/request";

export function getList(query) {
    return service({
        url: '/bidding/notice/listFront',
        method: 'get',
        params: query
    })
}

export function findAllByEndTime() {
    return service({
        url: '/bidding/notice/find',
        method: 'post'
    })
}

export function findTwoInfo(uid) {
    return service({
        url: '/bidding/notice/findTwoInfo/'+uid,
        method: 'get',
    })
}

export function downloadZip(data) {
    return service({
        url: '/bidding/tenderFile/downloadZip',
        method: 'post',
        data: data
    })
}

export function getSubmissionInfo(sid,hid) {
    return service({
        url: '/bidding/submission/biddingInfo/'+hid + "/" + sid,
        method: 'get',
    })
}

export function getSystemNoticeList() {
    return service({
        url: '/system/notice/list',
        headers: {
            isToken: false
        },
        method: 'get',
        timeout: 20000
    })
}

export function getSystemNoticeDetail(noticeId) {
    return service({
        url: '/system/notice/detailInfo/' + noticeId,
        headers: {
            isToken: false
        },
        method: 'get',
        timeout: 20000
    })
}




